/**
 * @Description:  mec管理API
 * @Author:       zhengxu
 * @Date: 2021-11-05 14:07:24
 * @LastEditors:  zhengxu
 * @LastEditTime: 2021-11-09 15:19:47
 */

import { service as request, BasePath } from '../request'

/**
  * 查询所有MEC编号列表
  * @returns {Object} Promise
  */
export const getMecList = () => request({
  url: `${BasePath}/mecinfo/all`,
  method: 'GET'
})

/**
  * 新增mec信息
  * @params data mec数据
  * @returns {Object} Promise
  */
export const addMecinfo = (data) => request({
  url: `${BasePath}/mecinfo`,
  method: 'POST',
  data
})
/**
  * 修改mec信息
  * @params data mec数据
  * @returns {Object} Promise
  */
export const editMecinfo = (data) => request({
  url: `${BasePath}/mecinfo`,
  method: 'PUT',
  data
})
